<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        p{
          /* 已省略号结尾 */
          text-overflow: ellipsis;
          overflow: hidden;  
          /* 是否换行 */
          white-space: nowrap;
        }
    </style>
</head>
<body>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Maxime maiores, nam quas amet alias, dignissimos consectetur magni dolores ex repellendus doloremque! Obcaecati dolores architecto quae impedit natus? Sed, voluptate placeat.</p>
</body>
</html>